package com.e3.basdoc.employeecls.client;

import java.util.List;

import com.e3.basdoc.employeecls.model.EmployeeClsModel;
import com.e3.basdoc.employeecls.model.EmployeeClsQC;
import com.e3.web.core.client.RPCServiceHelper;
import com.e3.web.core.client.WebException;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;

public interface EmployeeClsRPCService extends RemoteService {
	public static class Util {

		private static EmployeeClsRPCServiceAsync instance;

		public static EmployeeClsRPCServiceAsync getInstance() {
			instance = (EmployeeClsRPCServiceAsync) RPCServiceHelper.getService(EmployeeClsRPCService.class.getName());
			if (instance == null) {
				instance = GWT.create(EmployeeClsRPCService.class);
				RPCServiceHelper.registerServiceEntryPoint(instance);
			}
			return instance;
		}

	}

	public EmployeeClsModel newEmployeeCls(EmployeeClsModel model) throws WebException;
	
	public EmployeeClsModel modifyEmployeeCls(EmployeeClsModel model) throws WebException;
	
	public List<EmployeeClsModel> getEmployeeClsByCondition(EmployeeClsQC qc) throws WebException;
	
	public void deleteEmployeeClses(List<EmployeeClsModel> models) throws WebException;
	
	public List<EmployeeClsModel> getEmployeeClsChildren(EmployeeClsModel model) throws WebException;

}
